﻿using UnityEngine;
public interface IPool
{
    /// <summary>
    /// 是否被回收
    /// </summary>
    public bool IsRecycle { get; set; }
    public bool User { get; set; }
    
    /// <summary>
    /// 最大存活时间
    /// </summary>
    public float MaxDelayTime { get; }

    /// <summary>
    /// 生成方法
    /// </summary>
    /// <param name="user">持有者</param>
    void SpawnObject(Transform user = null);
    
    /// <summary>
    /// 回收方法
    /// </summary>
    void RecycleObject();
}
